/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controlador;

import java.awt.event.ActionListener;
import Vista.FormConsultarArbitros;
import java.awt.event.ActionEvent;

/**
 *
 * @author Luis
 */
public class ControladorConsultaArbitros implements ActionListener {
     
    private FormConsultarArbitros formconsularbitros;
    
    public ControladorConsultaArbitros(){
        super();
        this.formconsularbitros =new Vista.FormConsultarArbitros();
        this.formconsularbitros.setLocationRelativeTo(null);
        this.formconsularbitros.setVisible(true);
        this.formconsularbitros.AddListener(this);
    }
    
    @Override
    public void actionPerformed(ActionEvent e) {
        String actionCommand = e.getActionCommand();
        if (actionCommand.equals("CARGAR"))
        {
         formconsularbitros.btnCargarArbitros();
        }
        if (actionCommand.equals("VOLVER"))
        {
            formconsularbitros.dispose();
        }
}   
}


